﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program1
    {
        static void Main(string[] args)
        {
            //Text();
            //Text3(Fruit.香蕉);
            //Text4(Game.法师);

            Student s1 = new Student("孙悟空");
          
            s1.EoL6();
           
            Student s2 = new Student("猪八戒");
            s2.EoL6();
         
            Student s3 = new Student("沙和尚");
            s3.EoL6();
            Student s4 = new Student("白龙马");
            s4.EoL6();
            Student.EoL7();
            s1.EoL6();

            s2.EoL6();

            s3.EoL6();

            s4.EoL6();
            //Student s5 = new Student("孙悟空");
            //s5.EoL6();
            //Student s6 = new Student("孙悟空");
            //s6.EoL6();
            //Student s7 = new Student("孙悟空");
            //s7.EoL6();
            //Student s8 = new Student("孙悟空");
            //s8.EoL6();
        }


        static void Text() {
            //1、编写程序，定义一个枚举类型，表示订单的状态值：新订单、已发货、已签收、已评价；
            //声明一个枚举类型表示某个订单的状态并将其值输出。

            shoping a = shoping.已签收;
            Console.WriteLine(a);

        }

        enum shoping
        {
            新订单,
            已发货,
            已签收,
            已评价

        }//枚举1
        public enum Fruit {
            香蕉,
            苹果,
            西瓜,
            草莓,
            葡萄,
            哈密瓜,
            奇异果
        }//枚举2
        public static void Text3(Fruit fruit) {
            switch (fruit)
            {
                case Fruit.香蕉:
                    Console.WriteLine("香蕉的分数是 6");
                    break;
                case Fruit.苹果:
                    Console.WriteLine("苹果的分数是 5");
                    break;
                case Fruit.西瓜:
                    Console.WriteLine("西瓜的分数是 1");
                    break;
                case Fruit.草莓:
                    Console.WriteLine("草莓的分数是 5");
                    break;
                case Fruit.葡萄:
                    Console.WriteLine("葡萄的分数是 9");
                    break;
                case Fruit.哈密瓜:
                    Console.WriteLine("哈密瓜的分数是 2");
                    break;
                case Fruit.奇异果:
                    Console.WriteLine("奇异果的分数是 10");
                    break;
                default:
                    break;

            }

        }
        public enum Game {
            战士,
            法师,
            精灵
        }//枚举3
        public static void Text4(Game game) {
            switch (game)
            {
                case Game.战士:
                    Console.WriteLine("战士的技能：碎石打击、烈焰锚钩、战斗咆哮");
                    break;
                case Game.法师:
                    Console.WriteLine("法师的技能：巨浪冲击、元素突击、复仇杀戮");
                    break;
                case Game.精灵:
                    Console.WriteLine("精灵的技能：减速陷阱、能量浪潮、旋风剑舞");
                    break;
                default:
                    break;
            }
        }

       
        

}
}
